package com.zhiliao.builder.demo1;

/**
 * 作者： zhi-liao
 * 类的作用:
 * 类的创建时间： 2021/5/23 14:33
 */
public class Director {
    private Builder builder = new ConcreteBuilder();

    public Product getAProduct() {
        builder.setPart("红旗汽车", "H5");
        return builder.getProduct();
    }
    public Product getBProduct() {
        builder.setPart("奥迪", "Q7");
        return builder.getProduct();
    }
}
